import { defineConfig } from 'vitepress'

export default defineConfig({
    title: '安心医疗系统 API 文档',
    description: '基于 Vue3 + Vite + VitePress 的项目文档',
    locales: {
        root: {
            label: '简体中文',
            lang: 'zh-CN',
            link: '/',
            themeConfig: {
                sidebar: [{
                    text: 'API模块',
                    items: [
                        { text: 'API总览', link: '/api/overview' },
                        { text: '认证管理', link: '/api/auth' },
                        { text: '排班管理', link: '/api/schedule' },
                        { text: '病历管理', link: '/api/medical-record' },
                        { text: '医生管理', link: '/api/doctor' },
                        { text: '用户管理', link: '/api/user' },
                        { text: '挂号管理', link: '/api/registration' },
                        { text: '患者管理', link: '/api/patient' },
                        { text: '订单管理', link: '/api/orders' },
                        { text: '消息管理', link: '/api/message' },
                        { text: '科室管理', link: '/api/department' },
                        { text: '预约管理', link: '/api/appointment' },
                        { text: 'AI 聊天', link: '/api/ai' }
                    ]
                }],
                search: {
                    provider: 'local',
                    options: {
                        translations: {
                            button: {
                                buttonText: '搜索文档',
                                buttonAriaLabel: '搜索文档'
                            },
                            modal: {
                                noResultsText: '未找到结果',
                                resetButtonTitle: '清除查询条件',
                                footer: {
                                    selectText: '选择',
                                    navigateText: '切换',
                                    closeText: '关闭'
                                }
                            }
                        }
                    }
                }
            }
        },
        en: {
            label: 'English',
            lang: 'en-US',
            link: '/en/',
            themeConfig: {
                sidebar: [{
                    text: 'API Modules',
                    items: [
                        { text: 'API Overview', link: '/en/api/overview' },
                        { text: 'Auth', link: '/en/api/auth' },
                        { text: 'Schedule', link: '/en/api/schedule' },
                        { text: 'Medical Record', link: '/en/api/medical-record' },
                        { text: 'Doctor', link: '/en/api/doctor' },
                        { text: 'User', link: '/en/api/user' },
                        { text: 'Registration', link: '/en/api/registration' },
                        { text: 'Patient', link: '/en/api/patient' },
                        { text: 'Orders', link: '/en/api/orders' },
                        { text: 'Message', link: '/en/api/message' },
                        { text: 'Department', link: '/en/api/department' },
                        { text: 'Appointment', link: '/en/api/appointment' },
                        { text: 'AI Chat', link: '/en/api/ai' }
                    ]
                }],
                search: {
                    provider: 'local',
                    options: {
                        translations: {
                            button: {
                                buttonText: 'Search Docs',
                                buttonAriaLabel: 'Search Docs'
                            },
                            modal: {
                                noResultsText: 'No results found',
                                resetButtonTitle: 'Clear query',
                                footer: {
                                    selectText: 'Select',
                                    navigateText: 'Navigate',
                                    closeText: 'Close'
                                }
                            }
                        }
                    }
                }
            }
        }
    }
})